/****************************************************************
 * Fulguro
 * Copyright (C) 2004 Christophe Clienti
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 ***************************************************************/


%module (docstring="Fulguro Histogram Module") flgrhistogram

%include ../common/common.i
%include ../common/typemap_flgr_vector.i

 /*********************** Include for wrapper **********************/

%inline %{

#include <flgrCoreTypes.h>
#include <flgrCoreErrors.h>
#include <flgrCoreVector.h>
#include <flgrCoreData.h>
#include <flgrHistogram.h>

  %}




%feature("autodoc","""
[out] Destination signal (FLGR_Data1D)
[in] Source signal (FLGR_Data1D)
[in] minimum bound (FLGR_Vector, Scalar or List/Array)
[in] maximum bound (FLGR_Vector, Scalar or List/Array)
[return] FLGR_Ret \n 
Stretch signal values
""") flgr1d_histogram_normalize;
FLGR_Ret flgr1d_histogram_normalize(FLGR_Data1D *datdest, FLGR_Data1D *datsrc, FLGR_Vector *boundmin, FLGR_Vector *boundmax);


%feature("autodoc","""
[out] Destination image (FLGR_Data2D)
[in] Source image (FLGR_Data2D)
[in] minimum bound (FLGR_Vector, Scalar or List/Array)
[in] maximum bound (FLGR_Vector, Scalar or List/Array)
[return] FLGR_Ret \n 
Stretch image values
""") flgr2d_histogram_normalize;
FLGR_Ret flgr2d_histogram_normalize(FLGR_Data2D *datdest, FLGR_Data2D *datsrc, FLGR_Vector *boundmin, FLGR_Vector *boundmax);

%feature("autodoc","""
[out] Histogram signal (FLGR_Data1D)
[in] Source image (FLGR_Data2D)
[return] FLGR_Ret \n 
Compute the histogram of a FLGR_UINT8 or FLGR_UINT16 image
""") flgr2d_get_histogram;
FLGR_Ret flgr2d_get_histogram(FLGR_Data1D *histogram, FLGR_Data2D *datsrc);
